package com.xin.springcloudquartz.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

@Configuration
@Component // 此注解必加
@EnableScheduling // 此注解必加
@Slf4j
public class ScheduleTask {
    public void sayHello(){
        log.info("Hello world");
    }
    }
